import request from '@/utils/request'
export function list(params) {
  return request({
     url:'/admin/picking/list',
     method:'get',
     params:params
  })
}
export function save(data) {
  return request({
     url:'/admin/picking/save',
     method:'post',
     data:data
  })
}

export function saveAndConfirm(data) {
  return request({
    url:'/admin/picking/saveAndConfirm',
    method:'post',
    data:data
  })
}
export function print(params) {
  return request({
    url:'/admin/picking/print',
    method:'post',
    params:params
  })
}

export function del(ids) {
  return request({
     url:'/admin/picking/del/'+ids,
     method:'post'
  })
}

export function find(id) {
  return request({
     url:'/admin/picking/find/'+id,
     method:'get',
  })
}

export function update(data) {
  return request({
     url:'/admin/picking/update',
     method:'post',
     data:data
  })
}

export function audit(id) {
  return request({
    url:'/admin/picking/audit/'+id,
    method: 'post',
  })
}

export function unAudit(id) {
  return request({
    url:'/admin/picking/unAudit/'+id,
    method: 'post',
  })
}

export function cancel(id) {
  return request({
    url:'/admin/picking/cancel/'+id,
    method: 'post',
  })
}

export function exportView(id, params) {
  return request({
    url: '/admin/picking/export/' + id,
    method: 'get',
    params: params
  })
}

export function exportPicking(params) {
  return request({
    url: '/admin/picking/exportPicking',
    method: 'post',
    params:params
  })
}
export function complete(id,params) {
  return request({
    url: '/admin/picking/complete/' + id,
    method: 'post',
    params:params
  })
}


